package com.zy.mc_module.ui.micang.setting;

import android.view.View;

import androidx.annotation.NonNull;

import com.zy.mc_module.base.kotlin.BaseActivity;
import com.zy.mc_module.databinding.ActivityMicangSettingPayAliBinding;
import com.zy.mc_module.ui.micang.RiceContract;
import com.zy.mc_module.ui.micang.RicePresenter;
import com.zy.mc_module.utils.StatusBarUtil;

/**
 * created by Jaygee_vi
 * 2022/10/19
 */
public class MiCangSettingPayAliActivity
extends BaseActivity<RiceContract.View , RicePresenter , ActivityMicangSettingPayAliBinding> {

    private int payType ;

    @NonNull
    @Override
    public ActivityMicangSettingPayAliBinding getViewBinding() {
        return ActivityMicangSettingPayAliBinding.inflate(getLayoutInflater());
    }

    @Override
    protected void initView() {
        super.initView();
        StatusBarUtil.setImmersiveStatusBar(this);
        payType = getIntent().getIntExtra("type", 0);
        if (payType == 0){
            binding.viewTitle.tvTitle.setText("支付宝账号设置");
            binding.tips1.setText("支付宝");
            binding.edit1.setHint("请输入账号");
        }else {
            binding.viewTitle.tvTitle.setText("银行卡账号设置");
        }
        binding.tipsName.setVisibility(payType == 0 ? View.VISIBLE : View.GONE);
        binding.cl2.setVisibility( payType == 1 ? View.VISIBLE : View.GONE);
        binding.cl3.setVisibility( payType == 1 ? View.VISIBLE : View.GONE);
    }


}
